<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <include file='__VIEW__/Common/header' />
	</head>
	<body>
		<table class="table table-hover">
			<tr class="active">
			  <th width="30">taid</th>
			  <th width="60">属性名称</th>
			  <th width="60">属性类别</th>
			  <th>属性值</th>
			  <th width="150">操作</th>
			</tr>
			<if value="empty($tAttrData)">
				<tr><td colspan="3">还没有类型属性</td></tr>
			<else />
				<foreach from="$tAttrData" key="$k" value="$v">
					<tr>
						<td>{$v.taid}</td>
						<td>{$v.taname}</td>
						<td>{$v.tatype}</td>
						<td>{$v.tavalue}</td>
						<td>
							<a href="{|U:'edit',array('taid'=>$v['taid'])}" class="btn btn-sm btn-warning">编辑</a>
							<a href="javascript:;" class="btn btn-sm btn-danger" onclick="del('{|U:'del',array('taid'=>$v['taid'],'tid'=>$_GET['tid'])}')">删除</a>
						</td>
					</tr>
				</foreach>
			</if>
			<tr>
			<td colspan="5"><a href="{|U:'add',array('tid'=>$_GET['tid'])}" class="btn btn-primary">添加属性</a></td>
			</tr>
		</table>
		<div id="page">{$pageData}</div>
	</body>
</html>
